package com.yztstudy;

import com.yztstudy.clients.ProductFeignClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 网关服务的启动类
 */

@SpringBootApplication
@EnableDiscoveryClient // 开启注册
@MapperScan(basePackages = "com.yztstudy.Mapper")
@EnableFeignClients(clients = {ProductFeignClient.class})
public class CartApplication {

	public static void main(String[] args) {
		SpringApplication.run(CartApplication.class, args);
	}

}
